<div class="container">
  <h1>display()</h1>
  <p class="signature"> public static function display(array $pagination_data): void </p>
  <h2>Description</h2>
  <div class="description">
    <p>Displays pagination links based on provided pagination data. The method automatically detects page numbers and pagination roots if not explicitly specified.</p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
        <th>Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>$pagination_data</td>
        <td>array</td>
        <td>The pagination data array.</td>
        <td>N/A</td>
      </tr>
    </tbody>
  </table>
  <h2>Required Array Keys</h2>
  <table>
    <thead>
      <tr>
        <th>Key</th>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>total_rows</td>
        <td>int</td>
        <td>The total number of records available.</td>
      </tr>
      <tr>
        <td>limit</td>
        <td>int</td>
        <td>The maximum number of records per page.</td>
      </tr>
      <tr>
        <td>record_name_plural</td>
        <td>string</td>
        <td>The plural label for the records.</td>
      </tr>
    </tbody>
  </table>
  <h2>Optional Array Keys</h2>
  <table>
    <thead>
      <tr>
        <th>Key</th>
        <th>Type</th>
        <th>Description</th>
        <th>Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>page_num_segment</td>
        <td>int</td>
        <td>The URL segment number indicating the current page.</td>
        <td>Auto-detected from the last URL segment if numeric</td>
      </tr>
      <tr>
        <td>pagination_root</td>
        <td>string</td>
        <td>The base URL for pagination links.</td>
        <td>Auto-detected from current URL</td>
      </tr>
      <tr>
        <td>include_showing_statement</td>
        <td>bool</td>
        <td>Whether to display a "Showing x to y of z" statement.</td>
        <td>false</td>
      </tr>
      <tr>
        <td>include_css</td>
        <td>bool</td>
        <td>Whether to include default pagination styles.</td>
        <td>false</td>
      </tr>
      <tr>
        <td>num_links_per_page</td>
        <td>int</td>
        <td>The number of pagination links to display.</td>
        <td>10</td>
      </tr>
      <tr>
        <td>settings</td>
        <td>array</td>
        <td>Custom pagination settings for HTML output.</td>
        <td>Default settings array</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <table>
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>void</td>
        <td>No return value. The method outputs HTML directly.</td>
      </tr>
    </tbody>
  </table>
  <h2>Example Usage</h2>
  <div class="example">
    <h3>Minimal Configuration (Using Auto-detection)</h3>
    <pre>
&lt;?php 
// Controller
$pagination_data = [
  'total_rows' => count($rows),
  'limit' => 10,
  'record_name_plural' => 'books',
  'include_showing_statement' => true
];
$data['pagination_data'] = $pagination_data;

// View file
Pagination::display($pagination_data);
?&gt;</pre>
  </div>
  <div class="example">
    <h3>Explicit Configuration</h3>
    <pre>
&lt;?php 
// Controller
$pagination_data = [
  'total_rows' => count($rows),
  'limit' => 10,
  'record_name_plural' => 'books',
  'page_num_segment' => 3,
  'pagination_root' => 'books/manage',
  'include_showing_statement' => true,
  'include_css' => true
];
$data['pagination_data'] = $pagination_data;

// View file
Pagination::display($pagination_data);
?&gt;</pre>
  </div>
</div>